package com.whisperarts.financer.model.transaction;

import java.math.BigDecimal;
import java.util.Calendar;

public class Transaction {
	private int id;
	private Category category;
	private BigDecimal amount;
	private Calendar date;
	private boolean income;
	private String note;
	private int accountId;
	
	public Transaction() {
	}

	public Transaction(int id, Category category, BigDecimal amount, Calendar date, boolean income, String note, int ccountId) {
		this.id = id;
		this.category = category;
		this.amount = amount;
		this.date = date;
		this.income = income;
		this.note = note;
		this.accountId = accountId;
	}
	
	public int getId() {
		return id;
	}	
	public void setId(int id) {
		this.id = id;
	}
	public Category getCategory() {
		return category;
	}
	public void setCategory(Category category) {
		this.category = category;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	public Calendar getDate() {
		return date;
	}
	public void setDate(Calendar date) {
		this.date = date;
	}
	public boolean isIncome() {
		return income;
	}
	public void setIncome(boolean income) {
		this.income = income;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public int getAccountId() {
		return accountId;
	}	
	public void setAccountId(int accountId) {
		this.accountId = accountId;
	}	
}
